<html lang="en-au" ng-app="datetime">
<meta charset="utf-8">
<script src="../../assets/laydate/laydate.js"></script>
<div class="box" ng-controller="init">

    <div class="demo1">
        <h3>演示二（普通模式）</h3>
        <input ng-model="time1" class="laydate-icon" id="demo" value="2014-6-25更新" ng-click="updateValue()">
    </div>
    <p>{{time1}}</p>

    <div class="demo2">
        <h3>演示一（日期精确到秒）</h3>
        <input ng-model="time2" placeholder="请输入日期" class="laydate-icon" onClick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})">
    </div>
    <p>{{time2}}</p>

</div>

<script>
    !function(){
        laydate.skin('molv');//切换皮肤，请查看skins下面皮肤库
        laydate({elem: '#demo'});//绑定元素
    }();
</script>
<script src="../../bower_components/angular/angular.js"></script>
<script src="datetime.controller.js"></script>
</html>